package com.mapgoo.implicitTest

/**
  *
  * @author eureka.wh
  * @since 2019-05-31 11:00
  */
// 隐式参数、隐式转换
object ParamDemo02 extends App {

  println(bigger(4,3))

  def bigger[T](a:T,b:T)(implicit ordered: T => Ordered[T]) = {
     if (ordered(a) > b) a else b
  }
}

object Hello {

  import ParamDemo02._

  //
  bigger(3,4)
}
